<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <style>
        .container {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            grid-template-rows: repeat(2, 400px);
            gap: 20px;
            width: 1000px;
            margin: 0 auto;
        }

        .box {
            border: 2px solid;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
        }

        .box h3 {
            font-size: 20px;
            margin-top: 0;
            margin-bottom: 10px;
        }

        .box p {
            font-size: 14px;
            margin-bottom: 10px;
        }

        .box div a {
            text-decoration: none;
            font-size: 18px;
            color: #333;
            display: block;
            /* margin-top: 10px; */
            margin-bottom: 10px;
        }

        .box div a:hover {
            color: red;
        }

        .box img {
            max-width: 100%;
            max-height: 100%;
            width: 100%;
            height: 67.3%;
            object-fit: cover;
            object-position: top;

        }


        .box .caption {
            margin-top: 10px;
            margin-bottom: 10px;
            text-align: center;
        }

        .currency,
        .decimal {
            font-size: 8px;
            color: red;
        }

        .currency2 {
            font-size: 22px;
            color: red;
        }
    </style>


    </style>

    <div class="container">
        <div class="box">
            <div>
                <a href="#">
                    <img src="img/狗头.jpg" alt="Image 1">
                </a>
            </div>
            <div class="caption">
                <h3>产品:路小佳</h3>
                <p>听话不咬人不拆家</p>
                <span class="currency">￥</span><span class="currency2">900.</span><span class="decimal">00</span>
                <span><a href="">点击购买</a></span>
            </div>
        </div>
        <div class="box">
            <div>
                <a href="#">
                    <img src="img/狗头.jpg" alt="Image 1">
                </a>
            </div>
            <div class="caption">
                <h3>产品:路小佳</h3>
                <p>听话不咬人不拆家</p>
                <span class="currency">￥</span><span class="currency2">900.</span><span class="decimal">00</span>
                <span><a href="">点击购买</a></span>
            </div>
        </div>
        <div class="box">
            <div>
                <a href="#">
                    <img src="img/狗头.jpg" alt="Image 1">
                </a>
            </div>
            <div class="caption">
                <h3>产品:路小佳</h3>
                <p>听话不咬人不拆家</p>
                <span class="currency">￥</span><span class="currency2">900.</span><span class="decimal">00</span>
                <span><a href="">点击购买</a></span>
            </div>
        </div>
        <div class="box">
            <div>
                <a href="#">
                    <img src="img/狗头.jpg" alt="Image 1">
                </a>
            </div>
            <div class="caption">
                <h3>产品:路小佳</h3>
                <p>听话不咬人不拆家</p>
                <span class="currency">￥</span><span class="currency2">900.</span><span class="decimal">00</span>
                <span><a href="">点击购买</a></span>
            </div>
        </div>
        <div class="box">
            <div>
                <a href="#">
                    <img src="img/狗头.jpg" alt="Image 1">
                </a>
            </div>
            <div class="caption">
                <h3>产品:路小佳</h3>
                <p>听话不咬人不拆家</p>
                <span class="currency">￥</span><span class="currency2">900.</span><span class="decimal">00</span>
                <span><a href="">点击购买</a></span>
            </div>
        </div>
        <div class="box">
            <div>
                <a href="#">
                    <img src="img/狗头.jpg" alt="Image 1">
                </a>
            </div>
            <div class="caption">
                <h3>产品:路小佳</h3>
                <p>听话不咬人不拆家</p>
                <span class="currency">￥</span><span class="currency2">900.</span><span class="decimal">00</span>
                <span><a href="">点击购买</a></span>
            </div>
        </div>
        <div class="box">
            <div>
                <a href="#">
                    <img src="img/狗头.jpg" alt="Image 1">
                </a>
            </div>
            <div class="caption">
                <h3>产品:路小佳</h3>
                <p>听话不咬人不拆家</p>
                <span class="currency">￥</span><span class="currency2">900.</span><span class="decimal">00</span>
                <span><a href="">点击购买</a></span>
            </div>
        </div>
        <div class="box">
            <div>
                <a href="#">
                    <img src="img/狗头.jpg" alt="Image 1">
                </a>
            </div>
            <div class="caption">
                <h3>产品:路小佳</h3>
                <p>听话不咬人不拆家</p>
                <span class="currency">￥</span><span class="currency2">900.</span><span class="decimal">00</span>
                <span><a href="">点击购买</a></span>
            </div>
        </div>
    </div>


</body>

</html>